import http from "@/utils/http";
// 获取奖品信息
export const getPrizeInfo = (params) => {
  return http.get("/auth/prize/info", params, true);
};
// 获取奖品信息（分组）
export const getPrizeGroup = (params) => {
  return http.get("/auth/prize/info/group", params, true);
};
// 下单抽奖
export const prizeOrder = (data) => {
  return http.get("/auth/prize/order", data, false);
};
// 获取赏品余量
export const getPrizeBalance = (params) => {
  return http.get("/auth/prize/box/rules", params, false);
};
// 获取中赏记录
export const getPrizeRecord = (params) => {
  return http.get("/auth/prize/good/info", params, false);
};
// 排行榜
export const getPrizeRank = (params) => {
  return http.get("/auth/prize/user/prize/rank", params);
};
// 获取背景音乐
export const getMusic = (params) => {
  return http.get("/auth/user/music", params, false);
};
// 锁箱
export const lockBox = (data) => {
  return http.get("/auth/prize/lock/box", data, false);
};
// 收藏
export const collect = (prizeId) => {
  return http.post(`/auth/user/user/goods/collect/${prizeId}`);
};
